sort by dataframe

39

sorted = df.sort_values('column-to-sort-on', ascending=False)
#or
df.sort_values('name', inplace=True) 
df = df.reindex(sorted(df.columns), axis=1)

Comments

Submit
0 Comments